import { pubRequire } from '@utils/public'
const baseUrl = '/activities/one-audit'
// 获取列表
export function getSearchList(obj, callBack, errBack) {
  return pubRequire(
    'get',
    `/activities/audit/published`,
    obj,
    callBack,
    errBack
  )
}
// 一审获取触达人群
export function getTouchPeopleAPI(activityId, params, callBack, errBack) {
  return pubRequire(
    'get',
    `/activities/${activityId}/audit/published/crowds`,
    params,
    callBack,
    errBack
  )
}
//获取所有用户人群
export function getAllStudentGroupAPI(params, callBack, errBack) {
  return pubRequire('get', `/crowds`, params, callBack, errBack)
}
// 获取短信人群金额
export function getMoneyAPI(params, callBack, errBack) {
  return pubRequire('get', `/crowds/sms-costs`, params, callBack, errBack)
}
// 编辑请求
export function editPassRequest(activityId, params, callBack, errBack) {
  return pubRequire(
    'put',
    `/activities/${activityId}/audit/published`,
    params,
    callBack,
    errBack
  )
}
/*审核通过*/
export function PassRequestAPI(activityId, params, callbBack, errBack) {
  return pubRequire(
    'put',
    `/activities/${activityId}/audit/published/pass`,
    params,
    callbBack,
    errBack
  )
}
/*审核不通过*/
export function noPassRequestAPI(id, params, callbBack, errBack) {
  return pubRequire(
    'put',
    `/activities/${id}/audit/published/unpass`,
    params,
    callbBack,
    errBack
  )
}
